<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Small_wx_pay_configuration.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Small_wx_pay_configuration.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '支付配置',
                    name: 'Small_wx_pay_configuration',
                    url: "/SmallWxPayConfigurations/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"app_id":"","app_secret":"","mch_id":"","mch_key":"","key_path":"","merchants_id":"","modifier":"","modifyDate":"","createDate":"","creator":"","modifyID":"","createID":"","isAvailable":""},
                editFormOptions: [ 
                                 [{"title":"商户","required":true,"field":"merchants_id","type":"select","dataKey": "mall_Merchant",},
                                 {"title":"Appid","required":true,"field":"app_id","type":"text"},],
                                 [{"title":"商户号","required":true,"field":"mch_id","type":"text"}, 
                                 {"title":"AppSecret","required":true,"field":"app_secret","type":"text"}],
                                 [{"title":"商户号秘钥","required":true,"field":"mch_key","type":"text"}],
                                 [{"title":"商户证书","required":true,"field":"key_path","type":"file",url: "/api/Small_wx_pay_configuration/Upload",maxSize: 5,colSize: 12}]
                                 ],
                searchFormFields: {"merchants_id":"","mch_id":"","creator":"","modifyDate":"","createDate":"","key_path":""},
                searchFormOptions: [[{"title":"商户","field":"merchants_id","type":"select","dataKey":"mall_Merchant"},{"title":"商户号","field":"mch_id","type":"like"},{"title":"商户证书","field":"key_path","type":"like"}],[{ "title": "创建时间", "field": "createDate", "type": "datetime" }, 
      ]],
                columns: [{field:'id',title:'主键',type:'string',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'merchants_id',title:'商户',type:'string',bind:{ key:'mall_Merchant',data:[]},width:100,align:'left'},
                       {field:'app_id',title:'Appid',type:'string',width:120,align:'left'},
                       {field:'app_secret',title:'AppSecret',type:'string',width:120,align:'left'},
                       {field:'mch_id',title:'商户号',type:'string',width:120,align:'left'},
                       {field:'mch_key',title:'商户号秘钥',type:'string',width:120,align:'left'},
                       {field:'key_path',title:'商户证书',type:'file',width:120,align:'left'},
                       {field:'apigw_public_key',title:'网关公钥',type:'string',width:120,align:'left'},
                       {field:'hank_app_id',title:'工行app_id',type:'string',width:120,align:'left'},
                       {field:'mer_id',title:'商户编号',type:'string',width:120,align:'left'},
                       {field:'mer_prtcl_no',title:'收单产品协议编号',type:'string',width:120,align:'left'},
                       {field:'my_private_key',title:'密钥对认证方式',type:'string',width:120,align:'left'},
                       {field:'name',title:'商户名称',type:'string',width:120,align:'left'},
                       {field:'path',title:'绝对路径',type:'string',width:120,align:'left'},
                       {field:'type',title:'支付渠道',type:'string',width:120,align:'left'},
                       {field:'creator',title:'创建人名称',type:'string',width:100,align:'left',sortable:true},
                       {field:'createDate',title:'创建时间',type:'datetime',width:100,align:'left',sortable:true},
                       {field:'modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:100,align:'left',sortable:true},],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
